//
//  BLEPeripheral.h
//  BabyBluetoothOSDemo
//
//  Created by 赵梁 on 2019/9/19.
//  Copyright © 2019 liuyanwei. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>
NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, BLEDeviceStatus) {
    BLEDeviceStatusNone = 0, // 未操作
    BLEDeviceStatusConnecting = 1,
    BLEDeviceStatusConnected = 2,
    BLEDeviceStatusDisconnected = 3,
    BLEDeviceStatusError = 99, // 异常
};

@interface BLEDevice : NSObject

@property (nonatomic, strong) CBPeripheral *peripheral;
@property (nonatomic, strong) NSDictionary *advertisementData;
@property (nonatomic, strong) NSNumber *RSSI;
@property (nonatomic, assign) BLEDeviceStatus status;

@end

NS_ASSUME_NONNULL_END
